<template>
  <div>
    <el-cascader-panel :options="menulist" @change="handle">
    </el-cascader-panel> 
  </div>
</template>

<script>
export default {
  data() {
    return {
      menulist: [],
      kid:""
    };
  },
  mounted() {
    this.getkind()
    
    
  },
  methods: {
    getkind(){
      this.axios.get("/getkind").then(res =>{
        this.menulist = res.data.data
      })
    },
    handle(data){
      this.kid = data[data.length -1]
      if(this.kid == 9){
        this.$router.push("/need")
      }else if(this.kid == 6){
        this.$router.push("/join")
      }
    }
  },
};
</script>

<style>
</style>